package com.markchu.modules.system.repository;


import com.markchu.common.constant.StatusConst;
import com.markchu.modules.system.domain.ActivityJoinUser;
import org.springframework.data.jpa.repository.Query;

/**
 * @author mark_chu
 * @date 2023/11/22
 */
public interface ActivityJoinUserRepository extends BaseRepository<ActivityJoinUser, Long> {
    @Query("select count(1) from ActivityJoinUser m where m.user_id = ?1 and m.ac_id = ?2")
    int getObjectBy(Long userId, Long acId);
}